/* eslint-disable @typescript-eslint/explicit-function-return-type */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
import { App } from 'vue';
import { registerFormDetailProvider } from '@ibiz-template/runtime';
import { CheckinGroupTitle } from './checkin-group-title';
import { CheckinGroupTitleProvider } from './checkin-group-title.provider';

export default {
  install(app: App) {
    // 全局注册表单成员插件组件
    app.component(CheckinGroupTitle.name!, CheckinGroupTitle);
    // 全局注册表单成员插件适配器，FORM_USERCONTROL是插件类型，GROUP_TITLE是插件标识
    registerFormDetailProvider(
      'FORM_USERCONTROL_GROUP_TITLE',
      () => new CheckinGroupTitleProvider(),
    );
  },
};
